#include "string.h"

int main()
{
	/*txp::string s1("hello world");
	cout << s1.c_str() << endl;

	s1.erase(6, 2);
	cout << s1.c_str() << endl;

	s1.erase(6);
	cout << s1.c_str() << endl;*/

	/*txp::string s1("hello world");
	size_t pos1 = s1.find('o');
	cout << pos1 << endl;

	pos1 = s1.find("wor");
	cout << pos1 << endl;*/

	txp::string s1("https://blog.csdn.net/x_p96484685433/article/details/143947215?spm=1001.2014.3001.5501");
	size_t pos1 = s1.find(':');
	size_t pos2 = s1.find('/', pos1 + 3);

	cout << (s1.substr(pos1 + 3, pos2 - (pos1 + 3))).c_str() << endl;

	return 0;
}